Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for building on 5.4.+ kernels. SUBDIRS is no longer parsed by Kbuild #3

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

betarho
Copy link

@betarho betarho commented Nov 29, 2020

The "sudo make install" command failed without this patch, at least on Ubuntu 20.04.
It is the same pull request as this one: gschorcht/spi-ch341-usb#16.

Just for info for other people having the same problem, the failure gave the following message:

$ sudo make install

Creating symlink /var/lib/dkms/i2c-ch341-usb/1.0.0/source ->
                 /usr/src/i2c-ch341-usb-1.0.0

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...(bad exit status: 2)
make -j8 KERNELRELEASE=5.8.0-29-generic -C /lib/modules/5.8.0-29-generic/build SUBDIRS=/var/lib/dkms/i2c-ch341-usb/1.0.0/build modules...(bad exit status: 2)
ERROR (dkms apport): binary package for i2c-ch341-usb: 1.0.0 not found
Error! Bad return status for module build on kernel: 5.8.0-29-generic (x86_64)
Consult /var/lib/dkms/i2c-ch341-usb/1.0.0/build/make.log for more information.
make: *** [Makefile:46: install] Error 10

The make.log content was:

KMS make.log for i2c-ch341-usb-1.0.0 for kernel 5.8.0-29-generic (x86_64)
Sun 29 Nov 2020 19:02:25 CET
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-29-generic'
  DESCEND  objtool
make[2]: *** No rule to make target 'arch/x86/tools/relocs_32.c', needed by 'arch/x86/tools/relocs_32.o'. Stop.
make[1]: *** [arch/x86/Makefile:211: archscripts] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/src/linux-headers-5.8.0-29-generic/tools/build/Makefile.build:37: /usr/src/linux-headers-5.8.0-29-generic/tools/build/Build.include: No such file or directory
make[5]: *** No rule to make target '/usr/src/linux-headers-5.8.0-29-generic/tools/build/Build.include'. Stop.
make[4]: *** [Makefile:43: /usr/src/linux-headers-5.8.0-29-generic/tools/objtool/fixdep-in.o] Error 2
make[3]: *** [/usr/src/linux-headers-5.8.0-29-generic/tools/build/Makefile.include:5: fixdep] Error 2
make[2]: *** [Makefile:68: objtool] Error 2
make[1]: *** [Makefile:1882: tools/objtool] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-29-generic'

The "sudo make install" command failed without this patch, at least on
Ubuntu 20.04.
Same pull request as spi-ch341-usb, gschorcht#16.
@hacki11
Copy link

hacki11 commented Feb 28, 2021

Had the same issues on my side

@gylab2
Copy link

gylab2 commented Mar 12, 2021

It is a common issue. It would be good if it was in the master.

@gschorcht gschorcht merged commit 8ce9d50 into gschorcht:master Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants